package com.ruoyi.mes.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 工时管理对象 mes_working_hours
 * 
 * @author Livon
 * @date 2021-11-09
 */
public class MesWorkingHours extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String workingHoursUuid;

    /** 工作人员（用户表ID） */
    @Excel(name = "工作人员", readConverterExp = "用=户表ID")
    private Long fkWorkerUserId;

    /** 生产派工表ID */
    @Excel(name = "生产派工表ID")
    private Long fkMesDispatchUuid;

    /** 定额级别（字典表） */
    @Excel(name = "定额级别", readConverterExp = "字=典表")
    private String mesDictQuotaLevel;

    /** 工时 */
    @Excel(name = "工时")
    private BigDecimal hours;

    /** 状态（正常、停用，字典表） */
    @Excel(name = "状态", readConverterExp = "正=常、停用，字典表")
    private String sysNormalDisable;

    /** 单据标题 */
    @Excel(name = "单据标题")
    private String docTitle;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String docNum;

    /** 单据时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date docDt;

    /** 备注 */
    @Excel(name = "备注")
    private String docNote;

    /** 经办人（用户表ID） */
    @Excel(name = "经办人", readConverterExp = "用=户表ID")
    private Long fkAttentionUserId;

    /** 审核人（用户表ID） */
    @Excel(name = "审核人", readConverterExp = "用=户表ID")
    private Long fkConfirmUserId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmDt;

    /** 审核结果（字典表） */
    @Excel(name = "审核结果", readConverterExp = "字=典表")
    private String oaDictConfirmStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String confirmNote;

    /** 工时 */
    @Excel(name = "工时", readConverterExp = "用=户表ID")
    private String workingHours;
    private String quotaWorkingHours;

    /** 工序号 */
    @Excel(name = "序号", readConverterExp = "用=户表ID")
    private String orderNum;

    /** 用户名 */
    @Excel(name = "用户名", readConverterExp = "用=户表ID")
    private String nickName;

    /** 单据时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String  dtDoneStart;

    /** 单据时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String dtDoneEnd;

    public String getQuotaWorkingHours() {
        return quotaWorkingHours;
    }

    public void setQuotaWorkingHours(String quotaWorkingHours) {
        this.quotaWorkingHours = quotaWorkingHours;
    }

    public String getDtDoneStart() {
        return dtDoneStart;
    }

    public void setDtDoneStart(String dtDoneStart) {
        this.dtDoneStart = dtDoneStart;
    }

    public String getDtDoneEnd() {
        return dtDoneEnd;
    }

    public void setDtDoneEnd(String dtDoneEnd) {
        this.dtDoneEnd = dtDoneEnd;
    }

    public String getNickName() {
        return nickName;
    }

    public String getWorkingHours() {
        return workingHours;
    }

    public void setWorkingHours(String workingHours) {
        this.workingHours = workingHours;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setWorkingHoursUuid(String workingHoursUuid) 
    {
        this.workingHoursUuid = workingHoursUuid;
    }

    public String getWorkingHoursUuid() 
    {
        return workingHoursUuid;
    }
    public void setFkWorkerUserId(Long fkWorkerUserId) 
    {
        this.fkWorkerUserId = fkWorkerUserId;
    }

    public Long getFkWorkerUserId() 
    {
        return fkWorkerUserId;
    }
    public void setFkMesDispatchUuid(Long fkMesDispatchUuid) 
    {
        this.fkMesDispatchUuid = fkMesDispatchUuid;
    }

    public Long getFkMesDispatchUuid() 
    {
        return fkMesDispatchUuid;
    }
    public void setMesDictQuotaLevel(String mesDictQuotaLevel) 
    {
        this.mesDictQuotaLevel = mesDictQuotaLevel;
    }

    public String getMesDictQuotaLevel() 
    {
        return mesDictQuotaLevel;
    }
    public void setHours(BigDecimal hours) 
    {
        this.hours = hours;
    }

    public BigDecimal getHours() 
    {
        return hours;
    }

    public void setFkConfirmUserId(Long fkConfirmUserId) 
    {
        this.fkConfirmUserId = fkConfirmUserId;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workingHoursUuid", getWorkingHoursUuid())
            .append("fkWorkerUserId", getFkWorkerUserId())
            .append("fkMesDispatchUuid", getFkMesDispatchUuid())
            .append("mesDictQuotaLevel", getMesDictQuotaLevel())
            .append("hours", getHours())
            .append("sysNormalDisable", getSysNormalDisable())
            .append("docTitle", getDocTitle())
            .append("docNum", getDocNum())
            .append("docDt", getDocDt())
            .append("docNote", getDocNote())
            .append("fkAttentionUserId", getFkAttentionUserId())
            .append("fkConfirmUserId", getFkConfirmUserId())
            .append("confirmDt", getConfirmDt())
            .append("oaDictConfirmStatus", getOaDictConfirmStatus())
            .append("confirmNote", getConfirmNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
